import random

TRAIL_NUM = 100000
investment = TRAIL_NUM * 2
repay = 0

box = [_ for _ in range(0, 100)]

for i in range(0, TRAIL_NUM):
    your_choice = random.choices(box, k=10)
    win_choice = random.choices(box, k=5)

    match = len(set(your_choice) & set(win_choice))

    if match == 2:
        repay += 5
    elif match == 3:
        repay += 50
    elif match == 4:
        repay += 1000
    elif match == 5:
        repay += 100000

print(repay - investment)
